#{extends 'main.html' /}
#{set title:'Assign Unit' /}

<form id ="form" action="@{Units.Assign()}" method="POST">

<br> <br>

<b>Please Select a User : </b>

<select size="1" name="userid">
#{list items:models.User.findAll(), as:'user'}
<option value="${user.id}">${user.UserName}</option>
#{/list}
</select>

<br> <br>

<b>Please Select a Unit : </b> 

<select size="1" name="unitid">
#{list items:models.Unit.findAll(), as:'unit'}
<option value="${unit.id}">${unit.UnitCode}</option>
#{/list}
</select>

<br> <br>

<input type="submit" value="Assign">

</form>